<include file="Core:Public:header" /> {:W('Navigation')}
<div class="body-right">
	<div class="row-table">
		<div class="row-table-title">团队名设置</div>
		<div class="row-table-body">
			<form class="form-horizontal " action="{:U('chrm/count/teamset')}" method="post">
				<p class="form-title">团队设置&nbsp;&nbsp;<a href="javascript:history.go(-1);">返回</a></p>

				<volist name="setlist" id="vo">
					<div class="form-group"><label for="name" class="col-sm-2 control-label">团队名称</label>
						<div class="col-sm-3 input-group">
							<input type="hidden" name="setid[]" value="{$vo.setid}" />
							<div class="input-group-addon">团队名称</div><input class="form-control" type="text" name="teamname[]" value="{$vo.teamname}"></div>
						<div class="col-sm-3 input-group">
							<div class="input-group-addon">团队ID</div><input class="form-control" type="text" name="teamid[]" value="{$vo.teamid}"></div>
						<div class="clear"></div>
					</div>
				</volist>

				<div class="form-group col1">
					<label for="name" class="col-sm-2 control-label">团队名称</label>
					<div class="col-sm-3 input-group">
						<div class="input-group-addon">团队名称</div><input class="form-control" type="text" name="teamname[]">
					</div>
					<div class="col-sm-3 input-group">
						<div class="input-group-addon">团队ID</div><input class="form-control" type="text" name="teamid[]">
					</div>
					<div class="col-sm-1"><button id="addteam" type="button" class="btn btn-warning">增加新团队</button></div>
					<div class="clear"></div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label"></label>
					<div class="col-sm-3">
						<input name="submit" class="btn btn-primary" type="submit" value="提交" />&nbsp;&nbsp;
						<input type="button" class="btn" value="取消" onclick="javascript:history.go(-1);" />
					</div>
				</div>
			</form>
			<script>
				$(function() {
					$("#addteam").click(function() {
						$('.col1').after('<div class="form-group"><label for="name" class="col-sm-2 control-label">团队名称</label><div class="col-sm-3 input-group"><div class="input-group-addon">团队名称</div><input class="form-control" type="text" name="teamname[]"></div><div class="col-sm-3 input-group"><div class="input-group-addon">团队ID</div><input class="form-control" type="text" name="teamid[]"></div><div class="clear"></div></div>')
					});
				});
			</script>
		</div>
	</div>
</div>
<div class="clear"></div>
<include file="Core:Public:alert" />
<include file="Core:Public:footer" />